
<<<<<<< .mine
#include <string.h>
#include <stdio.h>
#include "bilan_personnels.h"
void recup_bilan(struct event bilan[], int *i)
{
char bill[10], pass[3];
int id,x=0;
FILE *f;
f=fopen("evenements.txt","r");
if(f==NULL)
{
printf("erreur ouverture fichier");
}
while(fscanf(f,"%s %d %s",bill,&id,pass)!=EOF)
{
x=0;
while((x<(*i))&&(id!=bilan[x].id))
{
x++;
}

if(bilan[x].id==id)
{
strcat(bilan[x].passage,pass);printf("%s\n",bilan[x].passage);
}
else
{
bilan[x].id=id;
strcpy(bilan[x].passage,pass); //printf("%s",bilan[x].passage);
(*i)++; //printf(bilan[x].passage);
}

}
}
void affiche_bilan_erronee()
{
struct event bilan[200];
int i=0,j=0;
char compare[40]="E01C01S01L01C02V01I01D01B01M01";
recup_bilan(bilan,&i);
for(j=0;j<i;j++)
{   if((bilan[j].passage)/10000)==1)
    {if((strcmp(bilan[j].passage,compare))!=0)
    {
    printf("le patient avec l'identifiant %d a un bilan erronee\n",bilan[j].id);
    }}
   else
     {if ((bilan[j].passage,com
	}
    
     	
}
}

=======
>>>>>>> .r67
